package com.kedacom.ctsp.authz.access;

import com.kedacom.ctsp.authz.Authorize;
import com.kedacom.ctsp.authz.entity.AuthResource;
import com.kedacom.ctsp.authz.entity.Authentication;
import com.kedacom.ctsp.orm.param.Term;

import java.util.List;
import java.util.Set;

/**
 * 如何拼装数据权限的拼装条件
 *
 * @author sunchenjie
 * @create 2018-01-15 19:37
 **/
public interface DataAccessTermHandler {

    List<Term> getDataScopeAndAccessTerms(List<AuthResource> authResources, Authentication auth, Authorize anno);

}